#! /usr/bin/env python
# -*- coding: utf-8 -*-
from pywebio.output import put_html
import pyecharts.options as opts
from pyecharts.charts import Line

c = (
    Line()
        .add_xaxis(["衬衫", "毛衣", "领带", "裤子", "风衣", "高跟鞋", "袜子"])
        .add_yaxis("商家A", [114, 55, 27, 101, 125, 27, 105], is_connect_nones=True)
        .set_global_opts(title_opts=opts.TitleOpts(title="Line-连接空数据"))
)

c.width = "100%"
put_html(c.render_notebook())
